package com.strategy.entity;

import com.strategy.service.DailyBehavior;
import lombok.Setter;

/**
 * 学生实体类
 *
 * @author LiKun
 * @date 2021/8/11 0:01
 */
@Setter
public class Student extends People {
    public Student(String name) {
        this.setName(name);
    }

    public Student(DailyBehavior dailyBehavior) {
        this.setDailyBehavior(dailyBehavior);
    }

    public Student(String name, DailyBehavior dailyBehavior) {
        this.setName(name);
        this.setDailyBehavior(dailyBehavior);
    }

    @Override
    public String dailyLife() {
        return dailyBehavior.dailyLife();
    }
}
